import axios from "../axios.js";
import { TYPES } from "../consts.js";
export default {
    //根据ID保险分类
    async getTypesById(params) {
        return await axios({
            url: TYPES + '/getTypesById',
            method: 'get',
            params
        })
    },
    //获取所有保险分类
    async getTypes(params) {
        return await axios({
            url: TYPES + '/getTypes',
            method: 'get',
            params
        })
    },
    //新增保险分类
    async addTypes(data) {
        return await axios({
            url: TYPES + '/addTypes',
            method: 'post',
            data
        })
    },
    //修改保险分类
    async modifyTypes(data) {
        return await axios({
            url: TYPES + '/modifyTypes',
            method: 'post',
            data
        })
    },
    //删除保险分类
    async delTypes(data) {
        return await axios({
            url: TYPES + '/delTypes',
            method: 'post',
            data
        })
    }
}